<template>
  <router-view></router-view>
  <van-loading v-if="isJudge" vertical color="#1989fa" size="50">
    <template #icon>
      <van-icon name="star-o" size="50" />
    </template>
    加载中...
  </van-loading>
</template>
<script>
import { mapState } from "vuex";
export default {
  name: "App",

  computed: {
    ...mapState(["isJudge"]),
  }, // ...{ isJudge = true & true}
  
    
};
//   showLoading() {}
//   hideLoading() {}
</script>
<style scoped>
.van-loading {
  position: fixed;
  left: calc(50% - 25px);
  top: calc(50% - 25px);
}
</style>
